/**
 * HPComputerBuilder.java
 */
package com.module.builder;

import com.module.computer.Computer;
import com.module.cpu.AMDCPU;
import com.module.mainboard.GaMainboard;
import com.module.memory.ApacerMemory;

/**
 * @author Administrator
 *
 */
public class HPComputerBuilder implements ComputerBuilder {
	private Computer HPComputer = null;

	public HPComputerBuilder() {
		HPComputer = new Computer();
	}

	@Override
	public void buildCPU() {
		HPComputer.setCpu(new AMDCPU());

	}

	@Override
	public void buildMemory() {
		HPComputer.setMemory(new ApacerMemory());
	}

	@Override
	public void buildMainboard() {
		HPComputer.setMainboard(new GaMainboard());

	}

	@Override
	public Computer getComputer() {
		buildCPU();
		buildMemory();
		buildMainboard();
		return HPComputer;
	}

}
